GXGetAvailableJobFormatModes
You can use theGXGetAvailableJobFormatModes
function to determine which job format modes the application supports.
OSErr GXGetAvailableJobFormatModes ( gxJobFormatModeTableHdl *modeTbl);
modeTbl
- A pointer to a
gxJobFormatModeTable
structure.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
You call theGXGetAvailableJobFormatModes
function to find out which of the job format modes the application supports. The application establishes these modes by calling theGXSetPreferredJobFormatMode
function.Your printer driver calls this function and you pick one of the modes that the application supports as the preferred mode for your printer driver. You then call the
GXSetPreferredJobFormatMode
function to establish that mode as the preference for the application.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
You can find an example of using theGXGetAvailableJobFormatModes
function in Listing 3-7 on page 3-29 in the chapter "Printer Drivers."The
gxJobFormatModeTable
structure is described on page 5-14.The
GXSetPreferredJobFormatMode
function is described in the next section.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help